/*------------------------------------------------------------------------------
 * @FILE    HTTP_SERVER.H
 * @AUTHOR  GUOKEKE
 * @DATE    2025/01/07 13:11:59
 * @VERSION  V1.0
* ------------------------------------------------------------------------------*/

#ifndef __HTTP_SERVER_H__
#define __HTTP_SERVER_H__

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */

#include "flats.h"
#include "responseMsg.h"
#include "http.h"
#include "aqm_gy.h"

extern int GetHeaderValue(char *header, char *key);
extern void HandleRequest(char *request, int client_socket);
extern void HandleClient(void *arg);
extern int HttpServer();
extern int GetContentLength(char *request, char *header_keys);


#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* __HTTP_SERVER_H__ */